objNodes = objElem.selectNodes("/RPTML/REPORT[0]/SECTION[@type!='report_header' and @type!='page_header' and @type!='page_footer' and @type!='report_footer']/REPORT-ITEM[CONTROL-SOURCE]");
// Walk through the list of retrieved nodes
for (var iNode = 0; iNode < objNodes.length; iNode++)
{
objNode = objNodes.item(iNode);
// Check if we should bind this item
if (!IncludeReportItem(objNode) && !IsDataSheetForm(objNode))
continue;
// List the valid bound types. Anything not listed here will remain unbound.
var strType = GetNodeText(objNode, "@type", "");
switch (strType)
{
case "text-box":
case "label":
case "check-box":
case "list-box":
case "combo-box":
case "button":
case "option-group":
break;
default:
continue;
}
var strChildLabel = '';
if ((objNode.selectSingleNode("CHILD-LABEL") != null) && !IsDataSheetForm(objNode))
else if (objElem.selectSingleNode("/RPTML/REPORT[0]/SECTION[@idref='" + objLevel.selectSingleNode("@id").text + "']") != null) // no bound fields in the group level